package com.cskaoyan.wordmemorize.excel;

import com.cskaoyan.wordmemorize.dao.mapper.VocMapper;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class FillWordExcelValidator extends AbstractTopicExcelValidator{

    @Resource
    ResourceLoader resourceLoader;

    @Resource
    VocMapper vocMapper;


    @PostConstruct
    public void init() {
        super.init(resourceLoader, vocMapper);
    }
    @Override
    public String[] getTopicValidateWords(Map<Integer, String> data) {
        return new String[]{data.get(1), data.get(3), data.get(5)};
    }
}
